using Db4objects.Db4o;

namespace testDB
{
    public class PersistanceContainerFactory
    {
        private static string databaseFileName = "temp.dat";

        static public IObjectContainer Create()
        {
            return Db4oFactory.OpenFile(databaseFileName);
        }

        static public void Delete()
        {
            if(System.IO.File.Exists(databaseFileName))
                System.IO.File.Delete(databaseFileName);
        }

    }
}